#include<opencv2/opencv.hpp>

using namespace cv;

int main()
{
	VideoCapture cam(0);
	namedWindow("Camera");

	Mat image;
	while(1)
	{
		cam>>image;
		imshow("Camera", image);
		if(waitKey(50) != 255)
		{
			break;
		}
	}
	return 0;
}

